﻿using MvcModel.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcModel.Users
{
    public class UsersDbthing: System.Data.Entity.DropCreateDatabaseAlways<UserDbContext>
    {
        protected override void Seed(UserDbContext context)
        {
            context.Users.Add(new User
            {
                UserName = "灵",
                Password = "123456",
                IsActived = true,
                IsDeleted = false,
                CreatedTime = DateTime.Now,
                UpdateTime = DateTime.Now
            });
            base.Seed(context);
        }
    }
}